tests: Add missing margin to simple test
authorAlexander Mikhaylenko <alexm@gnome.org>
Sun, 10 May 2020 21:49:09 +0000 (02:49 +0500)
committerAlexander Mikhaylenko <alexm@gnome.org>
Sun, 10 May 2020 21:49:09 +0000 (02:49 +0500)
tests/simple.c

index 2bf39223bcccc6017bec697f0e78dcd377b8a07c..062afdc9fa0308ee7c1bf3e950a097b7634d86eb 100644 (file)
@@ -51,6 +51,10 @@ main (int argc, char *argv[])
 
   button = gtk_button_new ();
   gtk_button_set_label (GTK_BUTTON (button), "hello world");
+  gtk_widget_set_margin_top (button, 10);
+  gtk_widget_set_margin_bottom (button, 10);
+  gtk_widget_set_margin_start (button, 10);
+  gtk_widget_set_margin_end (button, 10);
   g_signal_connect (button, "clicked", G_CALLBACK (hello), NULL);
 
   gtk_window_set_child (GTK_WINDOW (window), button);